{extend name="index/index"}
{block name="content"}
<form action="{:url('admin/Links/update', ['id'=>$data['id']])}" class="am-form" method="post">
    <fieldset>
        <legend>友链编辑</legend>
        <div class="am-form-group">
            <input type="hidden" name="_method" value="PUT">
            <input type="hidden" name="id" value="{$data['id']}">
            <label for="doc-vld-name">友链名：</label>
            <input type="text" id="doc-vld-name" name="name" placeholder="输入友链名" class="am-form-field"
                   value="{$data['name']}" required/>
            <label for="doc-vld-name">友链地址：</label>
            <input type="text" id="doc-vld-name" name="url" placeholder="输入友链" class="am-form-field"
                   value="{$data['url']}" required/>
            <input type="submit" value="提交" class="am-btn am-btn-default am-btn-xs am-text-secondary">
        </div>
    </fieldset>
</form>
{/block}